package zhtt.action;

import com.opensymphony.xwork2.ActionSupport;

/**
 * Created by zhtt on 2017/4/17.
 */
public class UserAction extends ActionSupport {

    private String username;

    public String checkUser(){
        if("admin".equals(username)){
            return "admin";
        }else if("admin1".equals(username)){
            return "admin1";
        }else if("admin2".equals(username)){
            return "admin2";
        }else if("admin3".equals(username)){
            return "admin3";
        }else{
            return "user";
        }
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
